body{
    margin: 0;
    background: pink;
    position: relative;
    height: 100vh;
}
.container{
    width: 232px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 0;
}
.ball{
    width: 80px;
    height: 100px;
    border: 8px solid black;
    display: inline-block;
    border-radius: 50%;
    background-color: white;
    position: relative;
}
.face{
    width: 70px;
    height: 30px;
    position: absolute;
    top: 30px;
    right: 0px;
}
.face::before{
    content:'';
    width: 18px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc5858;
    position: absolute;
    right: 2px;
    top: 20px;
}
.face::after{
    content:'';
    width: 18px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc5858;
    position: absolute;
    left: -5px;
    top: 20px;
}
.eye{
    width: 12px;
    height: 12px;
    border-radius:  50%;
    border-bottom: 5px solid black;
    position: absolute;
}
.eye-l{
    left: 10px;
}
.eye-r{
    right: 5px;
}
.mouse{
    width: 24px;
    height: 14px;
    border-radius: 50%;
   border-bottom: 5px solid black;
    position: absolute;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    top: 20px;
}

@keyframes close {
    0%{ transform: translate(0px);}
    20%{ transform: translate(20px);}
    35%{ transform: translate(20px);}
    55%{ transform: translate(0px);}
    100%{ transform: translate(0px);}
}
#l-ball{
    animation: close 4s ease infinite;
    z-index: 2;
}
@keyframes face{
    0%{ transform: translate(0) rotate(0);}
    10%{ transform: translate(0) rotate(0);}
    20%{ transform: translate(5px) rotateY(-2deg);}
    28%{ transform: translate(0) rotate(0);}
    35%{ transform: translate(5px) rotateY(-2deg);}
    50%{ transform: translate(0) rotate(0);}
    100%{ transform: translate(0) rotate(0);}
}
.face-l{
    animation: face 4s ease infinite;
}

.face-r{
    left: 0px;
    top: 37px;
}
.face-r::before{
    width: 10px;
    height: 10px;
}
.face-r::after{
    width: 10px;
    height: 10px;
    left: 5px;
}
.eye-l-p{
    left: 5px;
    border-top: 5px solid black;
    border-bottom: none;
} 
.eye-r-p{
    right: 5px;
    border-top: 5px solid black;
    border-bottom: none;
}
.kiss-mouse{
    position: absolute;
    left: 20px;
    top: 22px;
}   
.kiss{
    width: 13px;
    height: 10px;
    border-radius: 50%;
    border-left: 5px solid black;
    opacity: 0;
}

@keyframes kiss{
    40%{ transform: translate(0);}
    50%{ transform: translate(30px) rotate(20deg);}
    60%{ transform: translate(-30px);}
    70%{ transform: translate(-30px);}
    100%{ transform: translate(0);}

}
#r-ball{
    animation: kiss 4s ease infinite;
}

@keyframes kiss-m {
    0%{ opacity: 0;}
    55%{ opacity: 0;}
    55.1%{ opacity: 1;}
    65%{ opacity: 1;}
    65.1%{ opacity: 0;}
    100%{ opacity: 0;}
}
.kiss{
    animation: kiss-m 4s ease infinite;
}

@keyframes mouse {
    0%{ opacity: 1;}
    55%{ opacity: 1;}
    55.1%{ opacity: 0;}
    65%{ opacity: 0;}
    65.1%{ opacity: 1;}
    100%{ opacity: 1;}
}
.mouse-r{
    animation: mouse 4s ease infinite;
}